OBJS=$(patsubst %.cpp,%.o,$(wildcard *.cpp))
OBJSC=$(patsubst %.c,%.o,$(wildcard *.c))
OBJS+=$(OBJSC)

include ../Mk/local.Mk
CXXINCLUDE+=-I./ -I../common $(shell xml2-config --cflags)
CXXFLAGS+=$(shell xml2-config --libs) -Wall

all: $(OBJS)

.cpp.o:
	$(CXX) $(CXXFLAGS) $(CXXDEFINE) -c $(CXXINCLUDE) $<

.c.o:
	$(CC) $(FLAGS) $(CXXDEFINE) -c $(CXXFLAGS) $(CXXINCLUDE) $<

clean:
	$(RM) $(OBJS)
